package com.lxlg.lxlg_order.infra.mapper;

import com.lxlg.lxlg_order.infra.model.OrderAndGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kevin
 * @since 2022-04-28
 */
public interface OrderAndGoodsMapper extends BaseMapper<OrderAndGoods> {
    @Select("select *from order_and_goods where order_id = #{orderId}")
    List<OrderAndGoods> getListOrderAndGoods(Integer orderId);

    /**
     * 修改订单商品状态
     * @param goodsList
     * 有状态的商品
     */
    void setlistState(List<OrderAndGoods> goodsList);

}
